package cn.itrip.dao;


import cn.itrip.beans.pojo.ItripComment;
import cn.itrip.beans.vo.ItripListCommentVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface ItripCommentMapper {
    int deleteByPrimaryKey(Long id);

    int insert(ItripComment record);

    int insertSelective(Map<String, Object> map);

    ItripComment selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(ItripComment record);

    int updateByPrimaryKeyWithBLOBs(ItripComment record);

    int updateByPrimaryKey(ItripComment record);

    List<ItripListCommentVO> selectByHotelId(ItripComment itripComment);

    Integer selectCount(ItripComment itripComment);

    ItripComment getScoreByHotelId(@Param("hotelId") Long hotelId);

    ItripComment getNewComment(Map<String, Object> map);

}